package k.b.s;


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class Database extends SQLiteOpenHelper {

	public Database(Context context){
		super(context, "VANGUARD_DB", null, 1);
	}


	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE ITEM_TB(_id INTEGER PRIMARY KEY AUTOINCREMENT,channel TEXT not null,title TEXT not null,description TEXT,pubdate Long not null,isread INTEGER not null);");
		db.execSQL("CREATE TABLE CHANNEL_TB(_id INTEGER PRIMARY KEY AUTOINCREMENT,channel TEXT not null,title TEXT not null,description TEXT);");
	}


	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}
}
